package com.example.com.daervideo.fragments.video;

import android.support.v7.widget.RecyclerView;

import com.example.com.daervideo.databinding.FragmentVideoBinding;
import com.example.com.daervideo.databinding.ItemVideoBinding;
import com.example.com.daervideo.myViews.MyTXVodPlayer;
import com.tencent.rtmp.TXVodPlayer;

/**
 * Created by i7-1 on 2018/12/7.
 */

public class VideoHolder extends RecyclerView.ViewHolder {
    public final ItemVideoBinding itemBinding;
    private TXVodPlayer player;
    private boolean isPause;

    public VideoHolder(ItemVideoBinding binding) {
        super(binding.getRoot());
        this.itemBinding = binding;
    }

    public void setPlayer(TXVodPlayer player) {
        this.player = player;
    }

    public TXVodPlayer getPlayer() {
        return player;
    }

    public void setIsPause(boolean b) {
        this.isPause = b;
    }

    public boolean isPause() {
        return isPause;
    }
}
